package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GaExamPaperSubjectMapper;
import com.ruoyi.system.domain.GaExamPaperSubject;
import com.ruoyi.system.service.IGaExamPaperSubjectService;

/**
 * 考试试卷题目增删改查Service业务层处理
 * 
 * @author wzp
 * @date 2021-11-18
 */
@Service
public class GaExamPaperSubjectServiceImpl implements IGaExamPaperSubjectService 
{
    @Autowired
    private GaExamPaperSubjectMapper gaExamPaperSubjectMapper;

    /**
     * 查询考试试卷题目增删改查
     * 
     * @param examPaper 考试试卷题目增删改查主键
     * @return 考试试卷题目增删改查
     */
    @Override
    public GaExamPaperSubject selectGaExamPaperSubjectByExamPaper(Long examPaper)
    {
        return gaExamPaperSubjectMapper.selectGaExamPaperSubjectByExamPaper(examPaper);
    }

    /**
     * 查询考试试卷题目增删改查列表
     * 
     * @param gaExamPaperSubject 考试试卷题目增删改查
     * @return 考试试卷题目增删改查
     */
    @Override
    public List<GaExamPaperSubject> selectGaExamPaperSubjectList(GaExamPaperSubject gaExamPaperSubject)
    {
        return gaExamPaperSubjectMapper.selectGaExamPaperSubjectList(gaExamPaperSubject);
    }

    /**
     * 新增考试试卷题目增删改查
     * 
     * @param gaExamPaperSubject 考试试卷题目增删改查
     * @return 结果
     */
    @Override
    public int insertGaExamPaperSubject(GaExamPaperSubject gaExamPaperSubject)
    {
        return gaExamPaperSubjectMapper.insertGaExamPaperSubject(gaExamPaperSubject);
    }

    /**
     * 修改考试试卷题目增删改查
     * 
     * @param gaExamPaperSubject 考试试卷题目增删改查
     * @return 结果
     */
    @Override
    public int updateGaExamPaperSubject(GaExamPaperSubject gaExamPaperSubject)
    {
        return gaExamPaperSubjectMapper.updateGaExamPaperSubject(gaExamPaperSubject);
    }

    /**
     * 批量删除考试试卷题目增删改查
     * 
     * @param examPapers 需要删除的考试试卷题目增删改查主键
     * @return 结果
     */
    @Override
    public int deleteGaExamPaperSubjectByExamPapers(Long[] examPapers)
    {
        return gaExamPaperSubjectMapper.deleteGaExamPaperSubjectByExamPapers(examPapers);
    }

    /**
     * 删除考试试卷题目增删改查信息
     * 
     * @param examPaper 考试试卷题目增删改查主键
     * @return 结果
     */
    @Override
    public int deleteGaExamPaperSubjectByExamPaper(Long examPaper)
    {
        return gaExamPaperSubjectMapper.deleteGaExamPaperSubjectByExamPaper(examPaper);
    }
}
